/*
 * @Author: 常安民 changanmin1@crdigital.com.cn
 * @Date: 2024-07-29 10:36:33
 * @LastEditors: 常安民 changanmin1@crdigital.com.cn
 * @LastEditTime: 2024-07-30 21:43:11
 * @FilePath: /console-web/mock/index.js
 * @Description: 
 * @email:anmin@foxmail.com
 * Copyright (c) 2024 by 华润数科控股有限公司/常安民, All Rights Reserved. 
 */
import standard from "./standard";
const mockMap = {
    'GET /api/user': {
        // obj
        id: 1,
        username: 'kenny',
        sex: 6,
    },
    'GET /api/user/list': [
        // array
        {
            id: 1,
            username: 'kenny',
            sex: 6,
        },
        {
            id: 2,
            username: 'kenny',
            sex: 6,
        },
    ],
   
    'DELETE /api/user/:id': (req, res) => {
        console.log('---->', req.body);
        console.log('---->', req.params.id); // request params
        res.send({ status: 'ok', message: 'delete success!' });
    },
};
Object.assign(mockMap,standard)
export default  mockMap;